package com.last.controller;

import com.last.entity.Result;
import com.last.entity.UserDto;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class LoginController {
    @Resource
    private com.last.service.UserService UserService;

    @RequestMapping("/login")
    public Result login(@RequestBody UserDto userDto){
        return UserService.login(userDto) ;
    }

    @RequestMapping("/check")
    public Result login(){
        return null ;
    }

}